<template>
    <div class="announcement">
        <h1 class="title">| 投资策略</h1>
        <el-row :gutter="30">
          <el-col :span="14">
             <div class="touyan">
                  <h1><span> </span><span></span>
                   <nuxt-link to="/column/touzicelue">查看更多 ></nuxt-link>
                  </h1>
                  <div>
                      <el-row :gutter="20">
                        <el-col :span="12">
                         <div class="touyannewslist">
                            <div class="imgnews">
                              <img :src="newbox4[0].thumbnail" alt="">
                              <div>
                                  <nuxt-link :to="'/post/' + newbox4[0].pid"><p>{{newbox4[0].name}}</p></nuxt-link>
                              </div>
                            </div>
                            <ul>
                               <li v-for="(item,index) in infodata" :key="index" v-if="index <= 4">
                                  <nuxt-link :to="'/post/' + item.pid"><span>{{item.name}}</span></nuxt-link>
                                <span class="time">{{item.createtime.slice(0,10)}}</span>
                                </li>  
                            </ul>
                         </div>
                        </el-col>
                        <el-col :span="12">
                            <div class="touyannewslist">
                            <div class="imgnews">
                                    <img :src="newbox4[1].thumbnail" alt="">
                                    <div>
                                        <nuxt-link :to="'/post/' + newbox4[1].pid"><p>{{newbox4[1].name}}</p></nuxt-link>
                                    </div>
                            </div>
                                <ul>
                                  <li v-for="(item,index) in infodata" :key="index" v-if="index > 4">
                                    <nuxt-link :to="'/post/' + item.pid"><span>{{item.name}}</span></nuxt-link>
                                  <span class="time">{{item.createtime.slice(0,10)}}</span>
                                  </li>  
                              </ul>
                            </div>
                        </el-col>                     
                      </el-row>
                  </div>
                  <div class="touyan2">
                    <nuxt-link to="/product/33">
                      <img src="http://p6dwecco6.bkt.clouddn.com/img/add3.png" alt="">
                    </nuxt-link>
                  </div>
             </div>
          </el-col>
          <el-col :span="10">
                          <div class="touyannewslist1">
                            <h1><span>股权研究</span> <nuxt-link to="/column/simuguquan">查看更多 ></nuxt-link></h1>
                                  <ul>
                                    <li v-for="(item,index) in newbox1" :key="index" v-if="index < 3">
                                      <nuxt-link :to="'/post/' + item.pid"><span>{{item.name}}</span></nuxt-link>
                                    <span class="time">{{item.createtime.slice(0,10)}}</span>
                                    </li>  
                                  </ul>
                            </div>

                            <div class="touyannewslist1">
                                <h1><span>信托研究</span><nuxt-link to="/column/simuguquan">查看更多 ></nuxt-link></h1>
                                <ul>
                                  <li v-for="(item,index) in newbox2" :key="index" v-if="index < 3">
                                    <nuxt-link :to="'/post/' + item.pid"><span>{{item.name}}</span></nuxt-link>
                                  <span class="time">{{item.createtime.slice(0,10)}}</span>
                                  </li>  
                                </ul>
                            </div>

                            <div class="touyannewslist1">
                                <h1><span>基金研究</span><nuxt-link to="/column/qiyuezijin">查看更多 ></nuxt-link></h1>
                                <ul>
                                  <li v-for="(item,index) in newbox3" :key="index" v-if="index < 3">
                                    <nuxt-link :to="'/post/' + item.pid"><span>{{item.name}}</span></nuxt-link>
                                  <span class="time">{{item.createtime.slice(0,10)}}</span>
                                  </li>  
                                </ul>
                            </div>
          </el-col>
        </el-row>

    </div>
</template>
<script>
export default {
  props: {
    infodata: {},
    newbox1:{
      type:Array,
      default:function(){
        return []
      }
    },
    newbox2:{
      type:Array,
      default:function(){
        return []
      }
    },
    newbox3:{
      type:Array,
      default:function(){
        return []
      }
    },
    newbox4:{
      type:Array,
      default:function(){
        return []
      }
    }
  },
  methods:{
    gonewsbox(val){
        this.$router.push(val)
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.imgnews{
  position: relative;
  overflow: hidden;
}
.imgnews:hover img{
  transform: scale(1.2);  
}
.imgnews div{
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, .5);
}
.imgnews div p{
  margin-top: 80px;
  text-align: right;
  height: 30px;
  line-height: 30px;
  color: white;
  margin-right: 20px; 
}
.touyannewslist1 h1{
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #cccccc;
  height: 38px;
  line-height: 38px;
}
.touyannewslist1 h1 span{
  color: #cd9c54;
  font-size: 18px;
}
.touyannewslist1 ul li{
  padding: 0 10px;
    font-size: 16px;
    color: #333;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px dashed #ccc;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.touyannewslist1 ul li:hover{
  color: #cd9c54;
}
.touyannewslist1 ul li a{
    display: inline-block;
    width: 70%;
}
.touyannewslist1 ul li span{
    display: inline-block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.touyannewslist ul li{
  padding: 0 10px;
    font-size: 16px;
    color: #333;
    height: 40px;
    line-height: 40px;
    border-bottom: 1px dashed #ccc;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
}
.touyannewslist ul li a{
    display: inline-block;
    width: 70%;
}
.touyannewslist ul li:hover{
  color: #cd9c54;
}
.touyannewslist ul li span{
    display: inline-block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
     text-overflow: ellipsis;
}
.touyannewslist img{
  width: 100%;
  height: 120px;
     transition: all 1s;  
}
.touyan2 img{
  width: 100%;
  height: 120px;
}
.touyan h1{
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
}
.touyan h1 span:nth-child(2){
  font-size: 22px;
  color: #cd9c54;
}
.time{
  width: 30%;
  text-align: right;
  display: inline-block;
}
.announcement {
  padding: 10px;
  width: 1200px;
  height: 554px;
  margin: 30px auto 0;
  background: #fff;
  box-sizing: border-box;
}
.title {
  font-size: 22px;
  color: #333333;
  font-size: 22px;
  margin: 10px 0 0 10px;
  font-weight: bolder;
  text-align: left;
}
.heard {
  width: 100%;
  height: 120px;
  position: relative;
}
.heard img{
  width: 100%;
  height: 100%;
}
.heard div {
  color: white;
  width: 100%;
  height: 120px;
  position: absolute;
  background: rgba(0, 0, 0, .5);
  top: 0;
  left: 0;
  padding: 0 50px;
  box-sizing: border-box;
}
.heard div p:first-child{
  margin-top: 40px;
  font-size: 22px;
  color: #fffefe;
}
.heard div p:nth-child(2){
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 16px;
  color: #fffefe;
  cursor: pointer;
}
.newslist{
  overflow: hidden;
}
.newslist ul li a{
  display: inline-block;
  width: 70%;
}
.newslist ul li:hover{
  color: #cd9c54;
}
.newslist ul li{
  padding: 0 10px;
  font-size: 16px;
  color: #333;
  height: 40px;
  line-height: 40px;
  border-bottom:1px dashed #ccc; 
  display: flex;
  justify-content: space-between;
}
.newslist ul li span:first-child{
  display: inline-block;
  width: 100%;
  overflow: hidden;
}
</style>
